home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: I need help.
- Date: 26 Mar 1996 15:08 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <26MAR199615081545@erich.triumf.ca>
- References: <4j9hr7$skj@cronkite.seas.gwu.edu>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4j9hr7$skj@cronkite.seas.gwu.edu>, celtik@gwis2.circ.gwu.edu (Tolga Celtikci) writes...
- >Can anyone help me with the syntax of EOF. Is it '\o' or something else?
-
- No.
-
- EOF is _not_ a char in the file. It is a value returned by getchar(), fgetc()
- and some other functions to indicate that they have attempted to read past
- end-of-file. It is a value that cannot be represented in a char, so getchar()
- returns an int. EOF is likely #defined as -1 in stdio.h, but may vary.
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-